{% extends "bvblogapp/base.html" %}
{% block pageName %}BioVenturist - Blog Index{% endblock %}
{% block queryScript %}
<link type="text/css" rel="stylesheet" href="/bvblogapp/static/css/bvblogapp.css">
</link>
<script type="text/javascript" src="http://www.google.com/jsapi">
</script>
<script type="text/javascript">
    google.load("jquery", "1.3");
</script>
<script type="text/javascript" src="/tiny_mce/jquery.tinymce.js">
</script>
</script>
<script type="text/javascript">
    $().ready(function(){
        $('textarea#id_text').tinymce({
        
            // Location of TinyMCE script
            
            script_url: '/tiny_mce/tiny_mce_src.js',
        	plugins : "internallink,listoftopics",             
            mode: "textareas",
            theme: "advanced",
            theme_advanced_resizing: false,
            theme_advanced_toolbar_align: "left",
            theme_advanced_toolbar_location: "top",
            theme_advanced_buttons1: "bold,italic,undreline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,formatselect,fontsizeselect,separator,bullist,numlist,separator,outdent,indent,separator,undo,redo,separator,link,unlink,anchor,image,cleanup,code,separator,help",
            theme_advanced_buttons2: "hr,removeformat,visualaid,separator,sub,sup,separator,charmap",
            theme_advanced_buttons3: "internallink,listoftopics",
        	height : "300",            
            relative_urls : false,

        });
    });
</script>
{% endblock %}
{% block container %}
<div id="col21" class="900px">
    <h1>Create New Analisys</h1>
    <div id="blog_post_form">
        <form method="post" action="{% if post_id %}{% url blog_update request.user.username,post_id %}{% else %}{% url blog_create request.user.username %}{% endif %}">
            <table id="blog_post_form_footer">
                <tr>
                    <td class="bottom">
                        <div id="blog_post_form_title">
                            <label for="id_title">
                                Title: 
                            </label>
                            {{ form.title }}
                        </div>
                    </td>
                    <td class="align_right bottom">
                        <label for="id_title">
                            Analysis is private 
                        </label>
                        {{ form.is_private }} 
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        {{ form.text }}
                    </td>
                </tr>
                <tr>
                    <td>
                        <div id="blog_post_form_tags">
                            <label for="id_tags">
                                Tags: 
                            </label>
                            {{ form.tags }}
                        </div>
                    </td>
                    <td class="align_right">
                        <input type="submit" name="submit" value="Save">
						<input type="button" onclick="javascript:window.location='{% url blog_index request.user.username %}'" value="Cancel">
                    </td>
                </tr>
            </table>
        </form>
    </div>
</div>{% endblock %}
